package com.hitqz.robot.api.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * @author wengyx
 * @date 2024/8/7
 * 检测姿态组
 */
@TableName(value = "patrol_pose")
public class PatrolPose {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @NotNull(message = "点位id不能为空")
    private Integer groupId;
    @NotNull(message = "外设id不能为空")
    private Integer equipmentId;
    @NotBlank(message = "外设参数不能为空")
    private String json;

    private Integer isBack;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(Integer equipmentId) {
        this.equipmentId = equipmentId;
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }

    public Integer getIsBack() {
        return isBack;
    }

    public void setIsBack(Integer isBack) {
        this.isBack = isBack;
    }


    @Override
    public String toString() {
        return "PatrolPose{" +
                "id=" + id +
                ", groupId=" + groupId +
                ", equipmentId=" + equipmentId +
                ", json='" + json + '\'' +
                ", isBack=" + isBack +
                '}';
    }
}
